//
//  HTRegisterDriverChoiceVC.m
//  TruckDriver
//
//  Created by Ting Han on 2017/9/28.
//  Copyright © 2017年 Ting Han. All rights reserved.
//

#import "HTRegisterDriverChoiceVC.h"
#import "HTRegisterTruckMainVC.h"
#import "HTRegisterTruckOtherVC.h"

@interface HTRegisterDriverChoiceVC ()
@property (weak, nonatomic) IBOutlet UIImageView *imageView;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *safeBottomHeight;

@end

@implementation HTRegisterDriverChoiceVC

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"选择主副驾驶";
    self.safeBottomHeight.constant = kWidth(50) + IPHONE_SAFEBOTTOMAREA_HEIGHT;
}
- (IBAction)didClickBtn:(UIButton *)sender {
   // 80 主 81 副
    switch (sender.tag) {
        case 80: //主驾驶
        {
            HTRegisterTruckMainVC *main = [[HTRegisterTruckMainVC alloc]init];
            main.name = self.name;
            main.idCard = self.idCard;
            [self.navigationController pushViewController:main animated:YES];
        }
            break;
        case 81: //副驾驶
        {
            HTRegisterTruckOtherVC *other = [[HTRegisterTruckOtherVC alloc]init];
            other.name = self.name;
            other.idCard = self.idCard;
            [self.navigationController pushViewController:other animated:YES];
        }
            break;
        default:
            break;
    }
}


@end
